﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace Mvc.Models
{
    [Table("TB_Departamentos")]
    public class Departamento
    {

        [Key]
        public int ID { get; set; }

        [Display(Name = "Nombre del departamento")]
        [Required(ErrorMessage = "Este campo es requerido")]
        public string Nombre { get; set; }

        [Display(Name = "Código")]
        [Required(ErrorMessage = "Este campo es requerido")]
        public string Codigo { get; set; }
    }
}